export const px2rem = px => `${px / (750 / 10)}rem`

export const caesarEscape = function(str) {
	var out = ''
	var length = str.length
	for (var i = 0; i < length; i++) {
		out += str.charCodeAt(i) - 23
	}
	return out
}

export const rem2px = function(rem){
    let unit =parseInt(window.document.documentElement.style.fontSize.replace('px',''));
    return unit ? rem.replace('rem','') *unit : 0;
}



// WEBPACK FOOTER //
// ./src/utils/helper.js